package cn.jwelll.bxcstock.viewmodel.itemmodel

import android.databinding.BaseObservable
import java.text.DecimalFormat

/**
 * 出库上传界面的 大item
 */
class ItemCarInUploadModel :BaseObservable(){
    var index=1
    var weight=0.0
        get() {
            var w=0.0
            childList.forEach{
                w+=it.weight
            }
            return  DecimalFormat("#.000").format(w).toDouble()
        }
    var name=""
    var paiHao=""
    var specification=""
    var count=0
        get() {
            return childList.size
        }

    var childList= arrayListOf<UploadDetailModel>()

}